package net.hn.hnms.biz.project.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper=false)
@Table(name = "vehicle_ledger", schema = "xmgl", catalog = "huaneng-manage")
public class VehicleLedger  extends BaseModel implements Serializable {


    @ApiModelProperty(value = "车辆编号ID")
    @TableField(value = "vehicle_id", fill = FieldFill.INSERT)
    @TableId(type = IdType.ASSIGN_UUID)
    private String vehicleId;



    @ApiModelProperty(value = "车辆颜色")
    private String vehicleColour;


    @ApiModelProperty(value = "车牌号")
    private String vehicleCode;


    @ApiModelProperty(value = "项目ID")
    private String projectId;


    @ApiModelProperty(value = "司机姓名")
    private String driverName;


    @ApiModelProperty(value = "车辆联系人电话")
    private String vehicleContact;


    @ApiModelProperty(value = "车辆品牌")
    private String vehicleBrand;


    @ApiModelProperty(value = "备注")
    private String remark;


    @ApiModelProperty(value = "车辆类型（小型轿车 | SUV | 越野车 | 卡车 | 客车 | 微型车 |  货车 | 摩托车 | 自行车）")
    private String vehicleType;


    @ApiModelProperty(value = "车辆驶入时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date driveInTime;


    @ApiModelProperty(value = "车辆驶出时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date driveOutTime;
}
